package com.cssnj.portal.domain.admin;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Objects;

public class GlJsGnEntityPK implements Serializable {
    private String jsId;
    private String gnId;

    @Column(name = "JS_ID")
    @Id
    public String getJsId() {
        return jsId;
    }

    public void setJsId(String jsId) {
        this.jsId = jsId;
    }

    @Column(name = "GN_ID")
    @Id
    public String getGnId() {
        return gnId;
    }

    public void setGnId(String gnId) {
        this.gnId = gnId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GlJsGnEntityPK that = (GlJsGnEntityPK) o;
        return Objects.equals(jsId, that.jsId) &&
                Objects.equals(gnId, that.gnId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(jsId, gnId);
    }
}
